home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1999 January
/
pcwk_01_1999.iso
/
Wtestowe
/
Perform
/
data.z
/
Perf95UR.dll
/
[0]
next >
Wrap
Text File
|
1998-09-28
|
2KB
|
47 lines
//
// None //
// //
// Modification History //
// 08/11/95 New //
// 08/23/95 F1 same help as help button //
// ======================================================================== //
void
CBThreadPrioDlg::OnHelpButton()
{
long lID = HID_BASE_RESOURCE+m_nIDHelp; //0x2000 + 0x8a
AfxGetApp()->WinHelp(lID);
}
// ======================================================================== //
// CBThreadPrioDlg::OnCommandHelp(WPARAM, LPARAM lParam) //
// //
// In response to F1 being pressed, we intercept the WM_HELP message //
// before it gets sent to the main frame window. We need to do this //
// because we do all the help processing via the OnHelp routine above. //
// This will provide context sensitive help on whichever control had //
// the focus when F1 was pressed. //
// //
// RETURN VALUE: //
// TRUE - indicates that we handled the help request //
// FALSE - search for next command handler in chain //
// //
// PARAMETERS: //
// lParam //
// //
// Modification History //
// 08/11/95 New //
// 08/23/95 F1 same help as help button //
// ======================================================================== //
LRESULT
CBThreadPrioDlg::OnCommandHelp(WPARAM, LPARAM lParam)
{
// Indicate that we handled the WM_HELP request. Otherwise, it gets
// passed to the main frame window.
// Try to invoke the same help as the Help button w/o bringing
// up context sensitive help
CBThreadPrioDlg::OnHelpButton();
return TRUE;
}